package day04;

import java.util.Scanner;

public class txt7 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        String str="";
        for (   ;  true  ;   ){
            String s1=s.nextLine();
            if (s1.equals("bye bye"))break;
            s1=s1+" ";
            str=str+s1;
            System.out.println(str);
        }

    }
}
